﻿import request from '/@/utils/request';
enum Api {
  AddEnvironmentData = '/api/environmentData/add',
  DeleteEnvironmentData = '/api/environmentData/delete',
  UpdateEnvironmentData = '/api/environmentData/update',
  PageEnvironmentData = '/api/environmentData/page',
  DetailEnvironmentData = '/api/environmentData/detail',
}

// 增加环境变量数据
export const addEnvironmentData = (params?: any) =>
	request({
		url: Api.AddEnvironmentData,
		method: 'post',
		data: params,
	});

// 删除环境变量数据
export const deleteEnvironmentData = (params?: any) => 
	request({
			url: Api.DeleteEnvironmentData,
			method: 'post',
			data: params,
		});

// 编辑环境变量数据
export const updateEnvironmentData = (params?: any) => 
	request({
			url: Api.UpdateEnvironmentData,
			method: 'post',
			data: params,
		});

// 分页查询环境变量数据
export const pageEnvironmentData = (params?: any) => 
	request({
			url: Api.PageEnvironmentData,
			method: 'post',
			data: params,
		});

// 详情环境变量数据
export const detailEnvironmentData = (id: any) => 
	request({
			url: Api.DetailEnvironmentData,
			method: 'get',
			data: { id },
		});


